package me.firstapp.module.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.CommonEntity;

@Entity
@Table(name = "EMAIL_CONFIG")
public class EmailConfig extends CommonEntity {

	private static final long serialVersionUID = 6017751566495054167L;

	@Column(name = "API_URL", length = 300, nullable = false)
	private String apiUrl;

	@Column(name = "API_USER", length = 100, nullable = false)
	private String apiUser;

	@Column(name = "API_KEY", length = 100, nullable = false)
	private String apiKey;

	@Column(name = "MAIL_FROM", length = 40, nullable = false)
	private String mailFrom;

	// 状态，0禁用，1启用
	@Column(name = "STATUS", columnDefinition = "TINYINT DEFAULT 0", nullable = false)
	private Integer status;

	public String getApiUrl() {
		return apiUrl;
	}

	public void setApiUrl(String apiUrl) {
		this.apiUrl = apiUrl;
	}

	public String getApiUser() {
		return apiUser;
	}

	public void setApiUser(String apiUser) {
		this.apiUser = apiUser;
	}

	public String getApiKey() {
		return apiKey;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMailFrom() {
		return mailFrom;
	}

	public void setMailFrom(String mailFrom) {
		this.mailFrom = mailFrom;
	}

}
